<div class="modal-header">
  {{obj.goods_name}} ({{obj.goods_code}})的销售渠道

</div>


<div class="modal-body">
<div class="container-fluid">

  <accordion close-others="oneAtATime">

    <!-- class="b-success" -->
    <accordion-group  
      ng-repeat="channel in objs"
    >

        <accordion-heading>
            渠道名称：{{channel.templete_name}} ({{channel.templete_code}})


            <!-- <i class="pull-right fa fa-angle-right" 
            ng-class="{'fa-angle-down': status.open, 'fa-angle-right': !status.open}"></i>
 -->
            <span class="pull-right">{{channel.state}}</span>

        </accordion-heading>
          <goodsform
            item="channel"
            result="channel.result"
            dateshow="channel.dateshow"
            timeshow="channel.timeshow"
            imageshow="channel.imageshow"
            model="model"
            hstep="1"
            mstep="15"
            ismeridian="true"
          ></goodsform>
          <div class="m-t m-b ml10">

            <button type="submit" class="btn btn-default btn-rounded" 
            ng-click="savechannel(channel)"
            >保存</button>
            <button type="submit" class="btn btn-default btn-rounded" 
            ng-click="start(channel)"
            >上架</button>
            <button type="submit" class="btn btn-default btn-rounded" 
            ng-click="stop(channel)"
            >下架</button>

          </div>


    </accordion-group>

  </accordion>
        

</div>
</div>


<div class="modal-footer mt10">
  <button class="btn  btn-warning" ng-click="cancel()">返回</button>
</div>

